package com.zs.framework.mail.producer;

import com.zs.framework.mail.utils.SendEmailProducer;

/**
 * @author zhougf
 * @version 1.0
 * @date 2020/07/28
 */
public class GeneralMailProducer extends AbstractMailProducer {

    @Override
    public void setSendMailProducer(SendEmailProducer sendMailProducer) {
        this.sendEmailProducer = sendMailProducer;
    }

    @Override
    public Boolean sendMail(String theme, String content) {
        return this.sendEmailProducer.sendMail(theme, content);
    }
}
